const messageBase = {
    searchArr: [
        // 搜索框
        {
            name: '通知名称',
            value: 'title',
            type: 'input'
        },
        {
            name: '通知类型',
            value: 'messageType',
            type: 'select',
            data: [{
                    label: '会议通知',
                    value: '1'
                },
                {
                    label: '工作通知',
                    value: '2'
                },
                {
                    label: '新闻通知',
                    value: '3'
                },
                {
                    label: '临时用餐',
                    value: '5'
                }, {
                    label: '抄送通知',
                    value: '6'
                }, {
                    label: '预警信息',
                    value: '7'
                }
            ]
        },
        {
            name: '创建时间',
            value: 'createTime',
            type: 'dateRange'
        },
        {
            name: '通知内容',
            value: 'contentLike',
            type: 'input'
        }
    ],
    columns: [{
            title: '序号',
            width: '65px',
            scopedSlots: {
                customRender: 'serial'
            }
        },
        {
            title: '通知类型',
            width: '100px',
            dataIndex: 'text.messageType',
            scopedSlots: {
                customRender: 'type'
            }
        },
        {
            title: '通知名称',
            width: '150px',
            ellipsis: true,
            dataIndex: 'text.title',
            scopedSlots: {
                customRender: 'name'
            }
        },
        {
            title: '通知内容',
            dataIndex: 'text.content',
            scopedSlots: {
                customRender: 'content'
            }
        },
        {
            title: '创建时间',
            width: '120px',
            dataIndex: 'createTime'
        },
        {
            title: '状态',
            width: '80px',
            dataIndex: 'text.sendType',
            scopedSlots: {
                customRender: 'status'
            }
        },
        {
            title: '操作',
            dataIndex: 'action',
            width: '80px',
            fixed: 'right',
            scopedSlots: {
                customRender: 'action'
            }
        }
    ],
    statusMap: {
        '0': {
            text: '待读',
            status: 'warning'
        },
        '1': {
            text: '已读',
            status: 'success'
        }
    },
    newsTypeMap: {
        '1': {
            text: '会议通知',
            color: '#FA9233'
        },
        '2': {
            text: '工作通知',
            color: '#0088EC'
        },
        '3': {
            text: '新闻通知',
            color: '#f59a23'
        },
        '4': {
            text: '事项处理',
            color: '#0088EC'
        },
        '5': {
            text: '临时用餐',
            color: '#0088EC'
        },
        '6': {
            text: '抄送给我',
            color: '#70b603'
        },
        '7': {
            text: '预警信息',
            color: '#A026FF'
        }
    }
}

const tableData = [{
        newsType: '1',
        newsName: 'xxx会议',
        newsContent: 'xxx会议内容会议内容会议内容会议内容会议内容会议内容会议内容会议内容会议内容会议内容会议内容会议内容会议内容会议内容会议内容会议内容会议内容',
        createTime: '2020-01-18',
        newsStatus: '0'
    },
    {
        newsType: '2',
        newsName: '节点工作交底',
        newsContent: 'xxx工作通知内容',
        createTime: '2020-01-18',
        newsStatus: '0'
    },
    {
        newsType: '3',
        newsName: 'xx中标',
        newsContent: 'xxx新闻通知内容',
        createTime: '2020-01-18',
        newsStatus: '0'
    },
    {
        newsType: '1',
        newsName: 'xxx会议',
        newsContent: 'xxx会议内容',
        createTime: '2020-01-18',
        newsStatus: '0'
    },
    {
        newsType: '2',
        newsName: '节点工作交底',
        newsContent: 'xxx工作通知内容',
        createTime: '2020-01-18',
        newsStatus: '0'
    },
    {
        newsType: '3',
        newsName: 'xx中标',
        newsContent: 'xxx新闻通知内容',
        createTime: '2020-01-18',
        newsStatus: '0'
    },
    {
        newsType: '1',
        newsName: 'xxx会议',
        newsContent: 'xxx会议内容',
        createTime: '2020-01-18',
        newsStatus: '0'
    },
    {
        newsType: '2',
        newsName: '节点工作交底',
        newsContent: 'xxx工作通知内容',
        createTime: '2020-01-18',
        newsStatus: '0'
    },
    {
        newsType: '3',
        newsName: 'xx中标',
        newsContent: 'xxx新闻通知内容',
        createTime: '2020-01-18',
        newsStatus: '0'
    },
    {
        newsType: '3',
        newsName: 'xx中标',
        newsContent: 'xxx新闻通知内容',
        createTime: '2020-01-18',
        newsStatus: '0'
    }
]
export default messageBase